{layout name="public:layout" /}
<h4 class="text-center text-danger">{$title}</h4>
<form class="form-horizontal" action="{:url('admin/Department/doEdit')}" method="post">
  <div class="form-group">
    <label for="inputEmail1" class="col-sm-2 control-label">名称：</label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="inputEmail1" name="name" value="{$departmentInfo.name}" placeholder="{$departmentInfo.name}">
    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail2" class="col-sm-2 control-label">部门类型：</label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="inputEmail2" name="type" value="{$departmentInfo.type}" placeholder="{$departmentInfo.type}">
    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">所在校区：</label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="inputEmail3" name="campus" value="{$departmentInfo.campus}" placeholder="{$departmentInfo.campus}">
    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail8" class="col-sm-2 control-label">状态：</label>
    <div class="col-sm-8">
      <select class="form-control" name="status">
          <option value="1">启用</option>
          <option value="0">禁用</option>
        </select>
    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail5" class="col-sm-2 control-label">权重：</label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="inputEmail5" name="weight" value="{$departmentInfo.weight}" placeholder="{$departmentInfo.weight}">
    </div>
  </div>
  
<!--    将当前用户的id作为隐藏域偷偷的传到服务器上去-->
    <input type="hidden" name="id" value="{$departmentInfo.id}">
    <input type="hidden" name="department_id" value="{$department_id}">
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-8">
      <button type="submit" class="btn btn-info">提交</button>
    </div>
  </div>
</form>